.item-panel {
  width: 280px;
  height: 100%;
  background-color: #f7f7f7;
  overflow-y: hidden;
  overflow-x: hidden;
  border-right: 1px solid #cccccc;

  display: flex;
  flex-direction: column;
  align-content: center;

  &:hover {
    overflow-y: scroll;
  }

  &::-webkit-scrollbar {
    width: 0px;
    height: 6px;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
  }
  &::-webkit-scrollbar-track {
    background-color: #f7f7f7;
  }

  .item-panel-search {
    width: 100%;
    height: 40px;
    padding: 4px 4px;
    // border-bottom: 1px solid rgba(0, 0, 0, 0.2);

    display: flex;
    justify-content: center;
    align-items: center;

    .search-input {
      width: 210px;
      height: 28px;
      padding: 0 10px;
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      outline: none; /* 修改原有的边框样式 */

      &:focus,
      &:focus-visible {
        border: 1px solid #409eff;
      }
    }

    .search-btn {
      height: 28px;
      padding: 0 20px;
      border-radius: 4px;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      line-height: 28px;
    }
  }

  // .item-panel-body 包含所有的图元
  .item-panel-body {
    width: 100%;
    flex: 1;

    // .item-panel-list 表示一类的图元
    .item-panel-list {
      // .item-panel-list-title 表示这类图元的标题
      .item-panel-list-title {
        width: 100%;
        height: 30px;
        padding: 0 8px;
        line-height: 30px;
        cursor: pointer;
        user-select: none;

        &:hover {
          background-color: #eeeeee;
        }

        .icon {
          width: 14px;
          height: 14px;
          font-size: 13px;
          font-weight: bold;
        }

        .title {
          margin-left: 10px;
          font-size: 13px;
          font-weight: bold;
        }
      }

      .item-panel-items {
        display: none;
      }

      &.expanded > .item-panel-items {
        display: block;
      }
    }
  }
}
